package com.abe.jetpack.model.remote

import com.abe.jetpack.helper.Constant
import com.abe.jetpack.model.entity.http.AuthorEntity
import com.abe.jetpack.model.entity.http.BaseEntity
import io.reactivex.Single
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.Path

interface wanAndroidService {
    @Headers(Constant.wanAndroidHeader)
    @GET(Constant.wxArticleData)
    fun getWeChatAuthor(): Single<BaseEntity<List<AuthorEntity>>>

    @Headers(Constant.wanAndroidHeader)
    @GET(Constant.wxArticleList)
    fun getWeChatArticleList(@Path("id") id: Int, @Path("page") page: Int): Call<BaseEntity<List<AuthorEntity>>>

    @Headers(Constant.wanAndroidHeader)
    @GET(Constant.wxArticleListByKey)
    fun getWeChatArticle(@Path("id") id: Int, @Path("page") page: Int, @Path("key") key: String): Call<BaseEntity<List<AuthorEntity>>>
}